home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: MegaDisc / MegaDisc 02 (1987)(MegaDisc Digital Publishing)(AU)[WB].zip / MegaDisc 02 (1987)(MegaDisc Digital Publishing)(AU)[WB].adf / I&O / QandA? < prev    next >
Text File  |  1987-04-21  |  8KB  |  188 lines

  1.  
  2.                                    Q&A
  3.                                   =====
  4.  
  5.     Dear Sir,
  6.              Many thanks for your return phone call last Sunday.  Am 
  7.     looking forward to the contents of the disc.
  8.  
  9.              I would be obliged if you could let me know the corrections in
  10.     definition you had to make, in the "Jigsaw" program published in
  11.     "Compute!" of February 1987.
  12.                                              Yours faithfully,
  13.  
  14.                                                N. L. Groves
  15.                                                Albury, NSW
  16.  
  17.           The first thing we noticed about the "Jigsaw" was that the program
  18.     listing itself had been cut into pieces and jumbled around.  Therefore,
  19.     the program would not run without error after error.  Many AmigaBasic
  20.     programs start with initial variable definition statements, like:
  21.  
  22.                DEFINT a-z
  23.                DEFSNG coLrs
  24.  
  25.           I found these in the second column of the listing, almost
  26.     halfway down, and decided that this was the start of the program.  But
  27.     what should I do with all those statements beforehand?  I picked up my
  28.     highlighter pens and highlighted all the GOSUB statements and their
  29.     corresponding subroutine labels with different colours.  This didn't
  30.     help me much, but it revealed that there was a whole subroutine missing
  31.     altogether i.e.  CoLr.Shift:
  32.  
  33.           Next, I looked at the first statements in the listing:
  34.  
  35.                FOR irow=0 TO rLast
  36.                FOR icoL=0 TO cLast
  37.  
  38.     Unless rLast and cLast were meant to be 0, they must be initialised
  39.     somewhere else.  I found this `somewhere' in the third column, about a
  40.     third down:
  41.  
  42.                'Make Bob strings and place piec
  43.                es on the screen
  44.                cLast=ncoLs.pzL-1:rLast=nrows.pz
  45.                L-1
  46.  
  47.     So, in a bold move, I copied all the first one and a half columns and
  48.     pasted them after the above lines.  Then, I went back and cut all the
  49.     same statements, so that DEFINT a-z was now the start of the program.
  50.     Voila!  Now, I could correct all the real Syntax errors and Undefined
  51.     labels that I had made!
  52.  
  53.           This left the two references to subroutine CoLr.Shift to worry
  54.     about.  If you delete them, the program will run OK, but mad as I am, I
  55.     decided to write my own colour-cycling subroutine, here it is:
  56.  
  57.                Colr.Shift:
  58.                FOR i=0 TO colrmax
  59.                  IF i=colrmax THEN k=0 ELSE k=i+1
  60.                  FOR j=0 TO 2
  61.                    colrs(i,j) = colrs(k,j)
  62.                  NEXT j
  63.                  PALETTE i, colrs(i,0), colrs(i,1), colrs(i,2)
  64.                NEXT
  65.                RETURN
  66.  
  67.           To make it work properly, I changed a few things at the start and
  68.     played around with the values for colrmax.  Near the end of the second
  69.     block of code, starting:
  70.  
  71.                faLse=0:true=-1
  72.  
  73.     I replaced ncoLrs=9 etc. with the following:
  74.  
  75.                d=5:ncolrs=2^d-1:colrmin=2:colrmax=ncolrs-23
  76.  
  77.           Another change I made was to the section that reads new palette
  78.     colours (at the end of the second column of the listing):
  79.  
  80.                RESTORE Nu.Colors
  81.                FOR i=0 TO ncolrs-1    'get new palette colours from DATA
  82.                  FOR j=0 TO 2
  83.                    READ colrs(i,j)
  84.                  NEXT j
  85.                  PALETTE i, colrs(i,0), colrs(i,1), colrs(i,2)
  86.                NEXT i
  87.  
  88.     and I added a whole heap of colour data.  You can make colrmax=ncolrs if
  89.     you want to, and give Nu.CoLors: 32 DATA statements, but moving the
  90.     pieces in the game becomes very slow and disjointed because of GOSUB
  91.     CoLr.Shift in the Show.Time subroutine.  Fiddle around till you get what
  92.     you like.
  93.  
  94.           Please refer to these Compute! issues for further information:
  95.              March 87 page 80 CAPUTE! and
  96.              April 87 page 80 CAPUTE!
  97.     These columns explain some of the same things in a different way.
  98.  
  99.           We enjoy playing the game, now that it works, hope you do too!!
  100.     If you look in the programs drawer you'll find our radically revised 
  101.     version called "JigSaw5"....
  102.  
  103.  
  104.                              +++++++++++++++
  105.  
  106.     Dear Ian & Tim,
  107.                    I am interested in interfacing a TEAC FD-55 floppy to
  108.     the Amiga. Any help that you may be able to provide would be 
  109.     appreciated. 
  110.     
  111.     Sincerely,
  112.     Barry Darby,
  113.     Currumbin, QLD.
  114.  
  115.     ** Commodore is marketing a 5.25" disk drive, the 1020, which is easily
  116.     interfaced to the Amiga.  However, any 5.25" disk drive can be 
  117.     connected, although it requires detailed knowledge of the innards of
  118.     the particular drive.  It's necessary to build a controller, which can
  119.     cost up to $100.  We're continuing to look into your specific problem,
  120.     and ask any readers who may have connected other 5.25" drives to their
  121.     Amigas to send us details.  We realize that many users are interested
  122.     in knowing how to do this, so they can use the cheaper 5.25" disks for 
  123.     storing large amounts of data.  We've heard Amazing Computing Vol.1, 
  124.     No.4 has an article on the subject, so we shall attempt to get a copy
  125.     of this to you Barry.  
  126.  
  127.                              +++++++++++++++
  128.  
  129.     Dear Amiga-Knowledge-Men,
  130.                              I placed a deposit on a Sidecar ( about 2
  131.     months ago, and have still not seen it), and would like to know what
  132.     would be the best hard card to use with the Sidecar?
  133.          Can you also give me some advice  as to which direction would be
  134.     best to take with regards to a modem:
  135.          a) install an internal modem in the sidecar, or
  136.          b) make use of the Serial port on the Amiga and have an external
  137.     modem.
  138.          If I chose option a), would I be able to use communication
  139.     software written for the Amiga.
  140.          Finally, is there any way of expanding memory on the Amiga, with
  141.     the Sidecar connected?  Could perhaps memory expansion within the 
  142.     Sidecar be utilized??
  143.  
  144.     Your Sincerely,
  145.     Mark Mills,
  146.     Epping, NSW.
  147.  
  148.     **Well Mark we hope you do see your Sidecar, if you really want it! The
  149.     last we heard, Commodore were going to receive one last shipment in May
  150.     or June (for a new retail price of $1595!), and that would be the end 
  151.     of the Sidecar.  The company in Germany which has been manufacturing 
  152.     them is winding down production.
  153.     So your questions may become "hypotheticals"...
  154.          As far as hard cards go, any that had a good reputation for the
  155.     IBM PC should work with the Sidecar.  Don,t go for some cheapy.  The 
  156.     only way of expanding memory on the Amiga with a Sidecar attached is 
  157.     to use the Insider.  This is a way of expanding memory internally on
  158.     the Amiga, and is available in Sydney for about $900 including
  159.     installation (which is advised as some cutting of the Insider board
  160.     is required to make it fit into the 1000).  No expansion boxes will
  161.     work because of the overloading on the 68000 chip. 
  162.          Commodore did allow for expansion within the Sidecar, but it 
  163.     would seem to be a dead issue now.  As the Sidecar will not be 
  164.     marketed in the USA, it's unlikely they'll develop any peripherals
  165.     to make use of the ability.  If you really want to a useful IBM 
  166.     compatible system, you'll probably have to think hard about buying the
  167.     Amiga 2000.
  168.          In answer to your queries about modems we recommend using the
  169.     Serial port, if you wish to use Amiga communications software.  A
  170.     modem placed inside the sidecar is possible, but would only handle
  171.     IBM format data, and no communication software written for the Amiga
  172.     could handle it.
  173.  
  174.     We hope these answers have been of some help, and look forward to
  175.     receiving many more.....        
  176.  
  177.     
  178.     
  179.         
  180.  
  181.       
  182.  
  183.  
  184.          
  185.  
  186.                                     
  187.  
  188.